Skip to main content

Verify Login Pin

POST : http://<base_url>/digipay/v3/auth/verify_login_pin

This API is used To verify Login Pin with.

BODY PARAMS:-

ParameterTypeDescriptionValue
login_pinStringThe PIN used for user login authentication.1234
phone_numberStringThe phone number of the user.123456789
dial_codeStringThe international dialing code for the phone number.1
user_typeIntThe type of user (e.g., 1 for employee, 2 for manager).2
device_typeStringThe type of device used by the user (e.g., android, iOS).android
device_idStringThe unique identifier of the device.123
device_unique_idstringAn additional unique identifier for the device..2

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request POST \
--url http://192.168.1.102:8014/digipay/v3/auth/verify_login_pin \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"login_pin": "1234",
"phone_number": "+1234567890",
"dial_code": "+1",
"user_type": 2,
"device_type": "android",
"device_id": "123",
"device_unique_id": "123456"
}
'

Response:-

Response 200(OK)
{
"success": 1,
"error": [],
"data": {
"message"": "Successfully logged in.",
"token": {
"type": "Token",
"token": "eyJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE1NjYyMDQ3OTh9.hujdIK2oH0Ecl5MA5Y5Px6PoBbkCADqFCBlbIj9G_yqC4FX5e_faQJEkYbmv7Z5qLBLK45LHL_JswoHCPlT2_Q"
},
"user_id": "ebccea2ac4114b5aaa790221f72d3799"
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400Bad Request
404Not Found
500Internal Server Error